package com.mlz.mlzmall.ui.model;

import android.content.Context;

import com.mlz.mlzmall.ui.utils.mlz.ConfigInfo;
import com.mlz.mlzmall.ui.utils.util.ACache;
import com.mlz.mlzmall.ui.utils.util.SharedUtils;


/**
 * Created by jason.zhou on 2016/1/24.
 */
public class StringTools {

    public static int mNum ;
    public static boolean allSelectNSC,allSelectSELF;
    public static int allselect;
    public static int SCE_HEIGHT,SCE_WIDTH;

    public static String editAddress;
	public static int productId;
    public static int TYPE;
    public static boolean isLoaded = true;

    public static int m_nManufacturerId;

    public static int mCollection;

    public static String phoneid;
    public static int mIntegration;

    public static int shareback;
    public static int shoppingGoBack;

    public static int shareId;
    public static int shareid;
    public static int againlogin = 0;

    public static int goodsshow;

    public static int sharelogin;
    public static int CartQulity;
    public static int type;
    public static int ffff;
    public static int updatashopping;
    public static String sharepictureurl;
    public static int promotionId;
    public static int topActivity;
    public static String nametopic;
    public static Context context;

    public StringTools(Context context){
        this.context = context;
    }

    public static boolean isLoginSession(Context context){
        String sessionKey = (String) SharedUtils.get(context, ConfigInfo.SESSIONKEY,"");
        String phoneId = (String) SharedUtils.get(context, ConfigInfo.PHONEID,"");
        if(!"".equals(sessionKey) && !"".equals(phoneId)){
            return true;
        }else {
            return false;
        }
    }


}
